var common = require("../../../utils/common.js");
var app = getApp();
Page({
    data: {
        status: true,
        hidden: false,
        systemInfo: {},
        article: {}
    },
    onLoad: function(option){
        var that = this;
        app.getSystemInfo(function(systemInfo){
            //更新数据
            that.setData({
                systemInfo:systemInfo
            })
        })
        common.reqService("/Article/ArticleDetail", {"article_id": option.id}, that.data.systemInfo, "GET", function(res){
            var article = res.data;
            article.content = article.content.replace("<img", "<image");
            that.setData({"hidden": true, "article": article})
        })
    },
    hiddenToast: function(){
      this.setData({status: true, msg:''});
    }
})